package uia.alumni.web;

import java.io.PrintWriter;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceUnit;
import javax.servlet.http.HttpServletRequest;

import static uia.alumni.form.FieldType.*;
import static uia.alumni.web.Constants.*;

/**
 * Servlet Outputs a 404-Error Page
 * @author Simon Zimmermann.
 */
public class NotFound extends Page {
    public static final String SERVLET_NAME = "404";

    @PersistenceUnit(name=PERSISTENCE_UNIT)
    private EntityManagerFactory emf;


    public NotFound() {
        super(null);
    }

    public void writeBody(PrintWriter out, HttpServletRequest request) {
        out.println("<h1>404-Error</h1>");
        out.println("<p>The page you are looking for does not exist.</p>");
       // EntityManager em = emf.createEntityManager();
        
    }
    public final static long serialVersionUID = 1;
}
